/**
 * 仅用于，能力综合分等级计算
 */
import React from 'react';
import { formatAssessLevel } from '../utils';

export default function useAssessLevel(levels, title) {
    const level = React.useMemo(() => formatAssessLevel(levels, title), [levels, title]);

    return level;
}
